#pragma once

#include "log/log_define.h"

namespace xlog {

/**
 * @brief 日志消息
 */
struct log_msg
{
    log_msg() = default;
    log_msg(log_level level, log_string_view msg);
    log_msg(const log_msg&) = default;

    log_level m_level{ log_level::off };
    log_string_view m_msg;
    log_clock::time_point m_time_point;
};

}

#ifdef XLOG_HEADER_ONLY
#include "log_msg_inl.h"
#endif